Release 10.1A: OpenEdge Development:
Messaging and ESB
Subscribing to a Pub/Sub topic and receiving messages
The following general steps outline how a 4GL application subscribes to a topic and receives messages:
- The application obtains a handle to the Pub/Sub Session object.
- The application creates a Message Consumer object by calling the createMessageConsumer procedure.
- The application calls the startReceiveMessages procedure in the Session object with the message handle, the name of a destination (a topic name for Pub/Sub), and the Message Consumer handle as input parameters.
- The application executes a
WAIT–FORstatement (or a waitForMessages procedure call) and processes incoming messages and other 4GL events.- The application deletes the messages after the application finishes using them.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |